//
//  MultipleControlButton.m
//  YSSmartHome
//
//  Created by Yahaong on 16/8/23.
//  Copyright © 2016年 yahaong. All rights reserved.
//

#import "MultipleControlButton.h"
#import "YHMarcros.h"
#import "UIView+Frame.h"
@implementation MultipleControlButton


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.titleLabel.textAlignment = NSTextAlignmentCenter;
        self.titleLabel.font = [UIFont systemFontOfSize:14];
        [self setTitleColor:RGBColor(52, 141, 207) forState:UIControlStateNormal];
        [self setTitleColor:[UIColor whiteColor] forState:UIControlStateSelected];
      
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    self.imageView.frame = self.bounds;
    CGFloat height = self.yh_height * 0.3;
    self.titleLabel.frame = CGRectMake(0, self.yh_height - height,self.yh_width, height);
}

@end
